package Game;

import java.awt.*;

public class Resource {
    //蛇头
    public static Image head_u =Toolkit.getDefaultToolkit().getImage("C:\\Users\\rog\\Desktop\\Usefull file\\java\\New Beginning\\src\\Game\\img\\head-u.jpg");
    public static Image head_d =Toolkit.getDefaultToolkit().getImage("C:\\Users\\rog\\Desktop\\Usefull file\\java\\New Beginning\\src\\Game\\img\\head-d.jpg");
    public static Image head_l =Toolkit.getDefaultToolkit().getImage("C:\\Users\\rog\\Desktop\\Usefull file\\java\\New Beginning\\src\\Game\\img\\head-l.jpg");
    public static Image head_r =Toolkit.getDefaultToolkit().getImage("C:\\Users\\rog\\Desktop\\Usefull file\\java\\New Beginning\\src\\Game\\img\\head-r.jpg");
    //身体
    public static Image body =Toolkit.getDefaultToolkit().getImage("C:\\Users\\rog\\Desktop\\Usefull file\\java\\New Beginning\\src\\Game\\img\\body.jpg");
    //食物
    public static Image food =Toolkit.getDefaultToolkit().getImage("C:\\Users\\rog\\Desktop\\Usefull file\\java\\New Beginning\\src\\Game\\img\\food.jpg");

    public static int level=1;

    //文字绘制
    public static void Word(Graphics g,String word,Color color,int size,int x,int y) {
        g.setColor(color);
        g.setFont(new Font("宋体",Font.BOLD,size));
        g.drawString(word,x,y);
    }
}
